package com.kexun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kexun.entity.DO.Manage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ManageMapper extends BaseMapper<Manage> {

    Manage findByUserName(String username);

    Manage findUserById(int id);

    IPage<Map<String, Object>> findList(Page<Manage> page, @Param("name") String name);

    Manage findByOpenId(String openId);

    List<Manage> findManageListByShopVal(int shopVal);

}
